<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'tijiao.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <form action="loginAction.action" method="post">
   <div>
    <p><label>姓名:</label><input type="text" name="username" value=""/></p>
    <p><label>密码：</label><input type="text" name="password" value=""/></p>
    <p><label>性别:</label><input type="text" name="gender"/></p>
    <input type="hidden" name="opType" value="insert"/>
    <p><input type="submit" value="提交"></p>
   </div>
   </form>
   <form action="loginAction.action" method="post">
    <input type="hidden" name="opType" value="send"/>
    <label>信息:</label><input type="text" name="info">
    <label>文本:</label><input type="text" name="textInfo">
    <p><input type="submit" value="发送"></p>
   </form>
   <form action="loginAction.action" method="post">
    <input type="hidden" name="opType" value="sendConsole"/>
    <label>信息:</label><input type="text" name="info">
    <label>文本:</label><input type="text" name="textInfo">
    <p><input type="submit" value="发送到控制台"></p>
   </form>
   <form action="loginAction.action" method="post">
    <input type="hidden" name="opType" value="recieve"/>
    <p><input type="submit" value="接收"></p>
   </form>
  </body>
</html>
